package comxyp.service.workbench;

import comxyp.pojo.workbench.Activity;

import java.util.List;
import java.util.Map;

public interface ActivityService {
    public int saveActivity(Activity activity);//保存市场活动
    //查询所有活动
    public List<Activity> findAll();
    //根据姓名活动查询并且分页
    List<Activity> selectActivityByConditionForPage(Map<String,Object> map);
    //查询总条数
    int selectCountOfActivityByCondition(Map<String,Object> map);
    //删除
    public int deleteById(String id);
    //批量删除
    public int deleteByIdAll(String[] id);
    //批量选择导出
    public List<Activity> findById(String [] id);
    //批量保存所有的市场活动
    public int insertActivityByList(List<Activity> activityList);
    //根据id查询修改
    public  int updateByPrimaryKeySelective(Activity activity);
    public Activity selectById(String id);
    List<Activity> selectByName (String name,String owner);
}
